package com.ruoyi.system.statis.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.statis.mapper.ServiceStatisEmployeeMapper;
import com.ruoyi.system.statis.domain.ServiceStatisEmployee;
import com.ruoyi.system.statis.service.IServiceStatisEmployeeService;
import com.ruoyi.common.core.text.Convert;

/**
 * 员工统计Service业务层处理
 * 
 * @author Administrator
 * @date 2021-03-06
 */
@Service
public class ServiceStatisEmployeeServiceImpl implements IServiceStatisEmployeeService 
{
    @Autowired
    private ServiceStatisEmployeeMapper serviceStatisEmployeeMapper;

    /**
     * 查询员工统计
     * 
     * @param id 员工统计ID
     * @return 员工统计
     */
    @Override
    public ServiceStatisEmployee selectServiceStatisEmployeeById(Long id)
    {
        return serviceStatisEmployeeMapper.selectServiceStatisEmployeeById(id);
    }

    /**
     * 查询员工统计列表
     * 
     * @param serviceStatisEmployee 员工统计
     * @return 员工统计
     */
    @Override
    public List<ServiceStatisEmployee> selectServiceStatisEmployeeList(ServiceStatisEmployee serviceStatisEmployee)
    {
        return serviceStatisEmployeeMapper.selectServiceStatisEmployeeList(serviceStatisEmployee);
    }

    /**
     * 新增员工统计
     * 
     * @param serviceStatisEmployee 员工统计
     * @return 结果
     */
    @Override
    public int insertServiceStatisEmployee(ServiceStatisEmployee serviceStatisEmployee)
    {
        return serviceStatisEmployeeMapper.insertServiceStatisEmployee(serviceStatisEmployee);
    }

    /**
     * 修改员工统计
     * 
     * @param serviceStatisEmployee 员工统计
     * @return 结果
     */
    @Override
    public int updateServiceStatisEmployee(ServiceStatisEmployee serviceStatisEmployee)
    {
        return serviceStatisEmployeeMapper.updateServiceStatisEmployee(serviceStatisEmployee);
    }

    /**
     * 删除员工统计对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteServiceStatisEmployeeByIds(String ids)
    {
        return serviceStatisEmployeeMapper.deleteServiceStatisEmployeeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除员工统计信息
     * 
     * @param id 员工统计ID
     * @return 结果
     */
    @Override
    public int deleteServiceStatisEmployeeById(Long id)
    {
        return serviceStatisEmployeeMapper.deleteServiceStatisEmployeeById(id);
    }
}
